/*
  Copyright (c) 2006-2009 by HAO jing <haojingus@gmail.com>
  This file is part of the SVG library. http://libsvg.googlecode.com

  This software is distributed under a license. The full license
  agreement can be found in the file LICENSE in this distribution.
  This software may not be copied, modified, sold or distributed
  other than expressed in the named license agreement.

  This software is distributed without any warranty.
*/

#ifndef SVGTEXT_H__
#define SVGTEXT_H__


#include "svgextension.h"
#include "svgtag.h"
#include "tag.h"

namespace gloox
{


class SVG_API SvgText :
	public SvgExtension
{
public:
	SvgText(Tag* tag);
	virtual ~SvgText(void);
	virtual SvgExtension* newInstance(Tag* tag){return 0;};
	virtual Tag* tag() const;

	int getX(){return m_x;};
	int getY(){return m_y;};
	std::string& getText(){return m_text;};
	//CSS getCSS(){return m_css;};

	bool isValid();

private:
	int m_x,m_y;
	Tag* m_tag;
	CSS m_css;
	bool m_isValid;
	std::string m_text;
};


}
#endif